package mylab.base.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;
import mylab.base.LabelValue;

@Getter
@AllArgsConstructor
public enum HttpCode implements LabelValue<Integer> {
    //@formatter:off
    OK_200(200, "请求成功"),

    ERR_400(400, "错误请求"),
    ERR_401(401, "要求身份验证"),
    ERR_403(403, "权限不足，拒绝请求"),
    ERR_404(404, "资源未找到"),
    ERR_405(405, "方法禁用"),
    ERR_406(406, "不接受"),
    ERR_407(407, "需要代理授权"),
    ERR_408(408, "请求超时"),
    ERR_409(409, "冲突"),
    ERR_410(410, "已删除"),
    ERR_411(411, "需要有效长度"),
    ERR_412(412, "未满足前提条件"),
    ERR_413(413, "请求实体过大"),
    ERR_414(414, "请求的URI过长"),
    ERR_415(415, "不支持的媒体类型"),
    ERR_416(416, "请求范围不符合要求"),
    ERR_417(417, "未满足期望值"),

    ERR_500(500, "请求失败"),
    ERR_501(501, "尚未实施"),
    ERR_502(502, "错误网关"),
    ERR_503(503, "服务不可用"),
    ERR_504(504, "网关超时"),
    ERR_505(505, "HTTP 版本不受支持"),
    //@formatter:on
    ;

    private final Integer value;
    private final String label;

}
